Optimal. Leaf size=62 \[ -\frac {c}{2 a x^2}+\frac {b c-a d}{a^2 x}+\frac {b (b c-a d) \log (x)}{a^3}-\frac {b (b c-a d) \log (a+b x)}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {78}
\begin {gather*} \frac {b \log (x) (b c-a d)}{a^3}-\frac {b (b c-a d) \log (a+b x)}{a^3}+\frac {b c-a d}{a^2 x}-\frac {c}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {c+d x}{x^3 (a+b x)} \, dx &=\int \left (\frac {c}{a x^3}+\frac {-b c+a d}{a^2 x^2}-\frac {b (-b c+a d)}{a^3 x}+\frac {b^2 (-b c+a d)}{a^3 (a+b x)}\right ) \, dx\\ &=-\frac {c}{2 a x^2}+\frac {b c-a d}{a^2 x}+\frac {b (b c-a d) \log (x)}{a^3}-\frac {b (b c-a d) \log (a+b x)}{a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 58, normalized size = 0.94 \begin {gather*} \frac {-\frac {a (a c-2 b c x+2 a d x)}{x^2}+2 b (b c-a d) \log (x)+2 b (-b c+a d) \log (a+b x)}{2 a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 62, normalized size = 1.00
method | result | size |
default | \(\frac {\left (a d -b c \right ) b \ln \left (b x +a \right )}{a^{3}}-\frac {c}{2 a \,x^{2}}-\frac {a d -b c}{a^{2} x}-\frac {\left (a d -b c \right ) b \ln \left (x \right )}{a^{3}}\) | \(62\) |
norman | \(\frac {-\frac {c}{2 a}-\frac {\left (a d -b c \right ) x}{a^{2}}}{x^{2}}+\frac {\left (a d -b c \right ) b \ln \left (b x +a \right )}{a^{3}}-\frac {\left (a d -b c \right ) b \ln \left (x \right )}{a^{3}}\) | \(62\) |
risch | \(\frac {-\frac {c}{2 a}-\frac {\left (a d -b c \right ) x}{a^{2}}}{x^{2}}+\frac {b \ln \left (-b x -a \right ) d}{a^{2}}-\frac {b^{2} \ln \left (-b x -a \right ) c}{a^{3}}-\frac {b \ln \left (x \right ) d}{a^{2}}+\frac {b^{2} \ln \left (x \right ) c}{a^{3}}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 63, normalized size = 1.02 \begin {gather*} -\frac {{\left (b^{2} c - a b d\right )} \log \left (b x + a\right )}{a^{3}} + \frac {{\left (b^{2} c - a b d\right )} \log \left (x\right )}{a^{3}} - \frac {a c - 2 \, {\left (b c - a d\right )} x}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.48, size = 68, normalized size = 1.10 \begin {gather*} -\frac {2 \, {\left (b^{2} c - a b d\right )} x^{2} \log \left (b x + a\right ) - 2 \, {\left (b^{2} c - a b d\right )} x^{2} \log \left (x\right ) + a^{2} c - 2 \, {\left (a b c - a^{2} d\right )} x}{2 \, a^{3} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 131 vs.
\(2 (53) = 106\).
time = 0.22, size = 131, normalized size = 2.11 \begin {gather*} \frac {- a c + x \left (- 2 a d + 2 b c\right )}{2 a^{2} x^{2}} - \frac {b \left (a d - b c\right ) \log {\left (x + \frac {a^{2} b d - a b^{2} c - a b \left (a d - b c\right )}{2 a b^{2} d - 2 b^{3} c} \right )}}{a^{3}} + \frac {b \left (a d - b c\right ) \log {\left (x + \frac {a^{2} b d - a b^{2} c + a b \left (a d - b c\right )}{2 a b^{2} d - 2 b^{3} c} \right )}}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.32, size = 75, normalized size = 1.21 \begin {gather*} \frac {{\left (b^{2} c - a b d\right )} \log \left ({\left | x \right |}\right )}{a^{3}} - \frac {{\left (b^{3} c - a b^{2} d\right )} \log \left ({\left | b x + a \right |}\right )}{a^{3} b} - \frac {a^{2} c - 2 \, {\left (a b c - a^{2} d\right )} x}{2 \, a^{3} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 73, normalized size = 1.18 \begin {gather*} -\frac {\frac {c}{2\,a}+\frac {x\,\left (a\,d-b\,c\right )}{a^2}}{x^2}-\frac {2\,b\,\mathrm {atanh}\left (\frac {b\,\left (a\,d-b\,c\right )\,\left (a+2\,b\,x\right )}{a\,\left (b^2\,c-a\,b\,d\right )}\right )\,\left (a\,d-b\,c\right )}{a^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________